package com.lagou.task08;

public class Animal {
    private String name;
    private String color;

    Animal(){

    }
    Animal(String name, String color){
        setColor(color);
        setName(name);
    }

    public void setName(String name){
        this.name = name;
    }
    public void setColor(String color){
        this.color = color;
    }
    public String getName(){
        return  name;
    }
    public String getColor(){
        return  color;
    }

    //打印特征
    public void show(){
        System.out.print(getName() + " is " + getColor());
    }
}
